//构造函数，需要与方法名相同
TestWrappper = function(options, $dom) {
 
    this.options = options;
    this.$dom = $dom;
    this.chartID = options.chartID;
    this.autoRefreshTime = options.autoRefreshTime || 0;
    this.width = options.width || $dom.width();// 补充从dom获取.
    this.height = options.height || $dom.height();
    this.sheetIndex = options.sheetIndex || 0;
    this.ecName = options.ecName || '';
    
    FR.Chart.WebUtils._installChart(this, this.chartID);
};
TestWrappper.prototype = {
	    constructor : TestWrappper,
	    //渲染
	    inits : function() {
	    	var ct = this.options.chartAttr;
	    	var data = ct.data//对应的后台jsonObject
	    	var title = ct.title
	    	console.info(ct);
	    	// 基于准备好的dom，初始化echarts实例
	        var myChart = echarts.init(this.$dom[0]);

	        // 指定图表的配置项和数据
	        var option = {
	            title: {
	                text: title
	            },
	            tooltip: {},
	            legend: {
	                data:['销量']
	            },
	            xAxis: {
	                data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
	            },
	            yAxis: {},
	            series: [{
	                name: '销量',
	                type: 'bar',
	                data: data[0]
	            }]
	        };

	        // 使用刚指定的配置项和数据显示图表。
	        myChart.setOption(option);
	    },
	    
	    //this.newCharts 是怎么来的
	    resize : function() {
	     
	        this.newCharts.resize();
	    },
	 
	    refresh:function() {
	 
	    },
	 
	    refreshData:function(options){
	 
	    },
	 
	    //数据监控的刷新方式
	    setData:function(options, aimation){
	 
	    }
	};